From: Daniel van Vugt Date: Mon, 25 Jan 2021 09:01:29 +0000 (+0800) Subject: shell/util: Don't compile in unused code when !HAVE_SYSTEMD X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~571 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bbb2f2603adc64a5e8cf2b1f453306d89274c58b;p=gnome-shell.git shell/util: Don't compile in unused code when !HAVE_SYSTEMD Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3620 Part-of: --- diff --git a/src/shell-util.c b/src/shell-util.c index 37b0cfaf2..ab8046a5a 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -570,6 +570,7 @@ shell_util_get_uid (void) return getuid (); } +#ifdef HAVE_SYSTEMD typedef struct { GDBusConnection *connection; gchar *command; @@ -692,6 +693,7 @@ on_systemd_job_removed_cb (GDBusConnection *connection, g_object_unref (task); } +#endif /* HAVE_SYSTEMD */ static void shell_util_systemd_call (const char *command,